package demo1;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
         binaryTree.preOrder(root);
        System.out.println();
         binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        int c = binaryTree.size(root);
        System.out.println(c);
        int a = binaryTree.size2(root);
        System.out.println(a);
        System.out.println(binaryTree.getLeafNodeCount2(root));

    }
}
